<template>
  <Content title="首页">
    {{ userStore.userInfo }}
    <el-button @click="getApi" type="primary">测试发送请求</el-button>
  </Content>
</template>

<script setup>
import { ref, computed, watch, reactive, onMounted } from 'vue'
import { useUserStore } from '@/stores';
const userStore = useUserStore()

import { test } from "@/api/api";

const getApi = () => {
  test().then(res => {
    console.log(res);
  })
}
</script>

<style scoped lang='less'></style>